<?xml version="1.0"?>
<unabto_queries 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.nabto.com/unabto/query_model.xsd">

  <query name="button_status" description="Button" id="1">
    <request>
    </request>
    <response>
      <parameter name="button_status" type="uint8"/>
    </response>
  </query>

  <query name="led" description="LED" id="2">
    <request>
		<parameter name="led_ids" type="uint8"/>
	</request>
    <response>
		<parameter name="led_status" type="uint8"/>
    </response>
  </query>
  
  <query name="digital_io" description="Digital I/O" id="3">
    <request>
      <parameter name="io_index" type="uint8"/> 
	  <parameter name="io_out" type="uint8"/>   
    </request>
    <response>
      <parameter name="io_status" type="uint8"/> 
    </response>
  </query>

  <query name="temperature" description="Temp. sensor" id="5">
    <request>
    </request>
    <response>
      <parameter name="temperature_celcius" type="uint32"/>
    </response>
  </query>
  
  <query name="analog" description="Analog inputs" id="6">
    <request>
	  <parameter name="ch_index" type="uint8"/>
    </request>
    <response>
      <parameter name="analog_ch" type="uint32"/>
    </response>
  </query>
  
  <query name="pwm" description="PWM Set" id="7">
    <request>
	  <parameter name="pwm_pin" type="uint8"/>
	  <parameter name="pwm_val" type="uint8"/>
    </request>
    <response>
      <parameter name="pwm_status" type="uint8"/>
    </response>
  </query>

  <query name="analog_raw" description="Raw analog inputs" id="8">
    <request>
	  <parameter name="ch_index" type="uint8"/>
    </request>
    <response>
      <parameter name="analog_ch" type="uint32"/>
    </response>
  </query>
  
  <query name="alarm" description="Easy Security management ~" id="9">
    <request>
	  <parameter name="turned" type="uint32"/>
    </request>
    <response>
       <parameter name="response" type="uint32"/>
    </response>
  </query>


  <query name="acl_add" description="Add user to ACL" id="1000">
    <request>
	  <parameter name="clientId" type="raw"/>
    </request>
    <response>
      <parameter name="success" type="uint8"/>
    </response>
  </query>

  <query name="acl_remove" description="Remove user from ACL" id="1001">
    <request>
	  <parameter name="clientId" type="raw"/>
    </request>
    <response>
      <parameter name="success" type="uint8"/>
    </response>
  </query>

</unabto_queries>
